Page({
  data: {
    loadData:{},
    verification:{},
    step:100,
    num:0,
    addRoomId:'',
    
    isFirst:true,

// 		//背景图
// 		bg:{
// 			url:'https://img.alicdn.com/imgextra/i3/4161056916/O1CN01wnmh0Z20xZqnJbld8_!!4161056916.jpg',
// 			width:750,
// 			height:1626
// 		},

//     background:{
//       url:"https://img.alicdn.com/imgextra/i3/4161056916/O1CN010IgRNL20xZqkKcqOW_!!4161056916.jpg",
//       width:680,
//       height:680
//     },

// // 覆盖在轮播上图片
//     lunbFG:{
//       url:"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01TvJZOO20xZqkcMaGv_!!4161056916.png",
//       width:680,
//       height:828
// 		},
		
// 		//加载条背景图
//     bgImg:{
//       url:"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01L2yTB320xZqeyvHdO_!!4161056916.png",
//       width:584,
//       height:64
// 		},

// 		loadtxt:{
// 			url:'https://img.alicdn.com/imgextra/i4/4161056916/O1CN01AFLROA20xZqhOFG74_!!4161056916.png',
// 			width:150
// 		},

// 		//滚动条
//     progressImg:{
//       url:"https://img.alicdn.com/imgextra/i2/4161056916/O1CN015FxPcD20xZqiWOV21_!!4161056916.png",
//       width:578,
//       height:64
// 		},
		
    ap:0,
		activetyTime:"2021-01-23 00:00:00 至 2021-01-31 00:00:00",
		shareOpenId:'',
		addRoomId:''
    // perc:100
  },


  loadInit(e){
    let idx = e.target.dataset.idx;
    let parent = e.target.dataset.parent;
    let num = this.data.num;

    // num -= 1;
    
    let calc=100 / num;

    this.setData({
      step:this.data.step - calc <= 0 ? 0 : this.data.step - calc,
      ap:this.data.ap + calc >= 100 ? 100 : this.data.ap + calc
    })

    if(Math.floor(this.data.step) <= 2){
      setTimeout(() => {

        if(!this.data.isFirst){
          return
        }

        this.setData({
          isFirst:false
        })

				this.flagSet = setInterval(() => {
					if(getApp().openId){
						clearInterval(this.flagSet)

						if(this.data.endActivity){
							
							my.showToast({
								content:'活动已结束',
								duration:5000
							})

							return
						}

						if(this.data.addRoomId == '' || this.data.addRoomId == 'biaoji' ){
							my.redirectTo({url:'../index/index?openId=' + this.data.shareOpenId})
						}else{
							my.redirectTo({url:'../index/index?addRoomId='+this.data.addRoomId})
						}
					}
				}, 50);

        // if(this.data.addRoomId == '' || this.data.addRoomId == 'biaoji' ){
        //   my.redirectTo({url:'../index/index?openId=' + this.data.shareOpenId})
        // }else{
        //   my.redirectTo({url:'../index/index?addRoomId='+this.data.addRoomId})
        // }

      },400)
    }


  },

  headImg(){
    getApp().cloud.application.httpRequest({
      
      'path' : '/api/c/user/currentActivityInfo', 
      'method':'POST',
      'headers':{ "Content-Type":"application/json"},
      'params':{},
      'body':{},
    
    'exts':{}  }).then(res => {
      console.info('获取活动信息',res)

      if(res.code != 200){

        my.showToast({content:res.msg});

        return
      }

      this.setData({
        background:{
          url:res.data.activity.headImage,
          width:680,
          height:700
        }
      })
    })
  },

  initFn(imgData){
    getApp().imgData = imgData;

    let alin = []


    let lin = {}
    let num = 0

    for(let i in imgData){
      
      let a = {}

      console.info(imgData[i])

      for(let z in imgData[i]){
        // a[z] = false;
        // num += 1;

        if(!imgData[i][z].url){
          for(let z in imgData[i]){
            
            a[z] = false;
            num += 1;

            alin.push({
              url:imgData[i][z].url
            })


          }
        }else{
          a[z] = false;
            num += 1;
          alin.push({
            url:imgData[i][z].url
          })
        }

        // console.info("=======================jieguo=======================>",imgData[i][z])

        
      }

      lin[i] = a

    }

    let al = []

    alin.map((v,i) => {

      // let arr = Object.keys(v);

      // console.info(JSON.stringify(v) == '{}')

      if(JSON.stringify(v) == '{}'){
        num -= 1
      }else{
        al.push(v)
      }

    })


    this.setData({
      loadData:imgData,
      verification:lin,
      num:num,
      alin:al
    })
  },
  //获取活动时间  
  eqActivityTime(){
    getApp().cloud.application.httpRequest({
      
      'path' : '/api/c/user/currentActivityInfo', 
      'method':'POST',
      'headers':{ "Content-Type":"application/json"},
      'params':{},
      'body':{},
    
    'exts':{}  }).then(res => {
      console.info('获取活动时间',res)

      if(res.code != 200){

        my.showToast({content:res.msg});

        return
			}

			getApp().cloud.application.httpRequest({
      
				'path' : '/api/c/user/activityIsEnd', 
				'method':'POST',
				'headers':{ "Content-Type":"application/json"},
				'params':{},
				'body':{},
			
			'exts':{}  }).then(result => {
				console.info('活动是否已经结束',result)

				if(result.code != 200){

					my.showToast({content:result.msg});

					return
				}


				let time = res.data.activity.startTime + " 至 " + res.data.activity.endTime

				this.setData({
					endActivity:result.data,
					activetyTime:time
        })
        

        //获取主题信息
        getApp().cloud.application.httpRequest({
      
          'path' : '/api/c/user/getTheme', 
          'method':'GET',
          'headers':{ "Content-Type":"application/json"},
          'params':{},
          'body':{},
        
          'exts':{}  }).then(result => {

          console.log("==============================pifu==================>",result)

          if(result.code != 200){

            my.showToast({content:result.msg});

            return

          }

          let pifu=JSON.parse(result.data.json)

          getApp().pifu = pifu

//           let pifuuuu ={
// 	"locaPage":{
// 		"bg":{
// 			"url":"https://img.alicdn.com/imgextra/i3/4161056916/O1CN01wnmh0Z20xZqnJbld8_!!4161056916.jpg",
// 			"width":750,
// 			"height":1626
// 		},
// 		"background":{
// 		"url":"https://img.alicdn.com/imgextra/i3/4161056916/O1CN010IgRNL20xZqkKcqOW_!!4161056916.jpg",
// 		"width":680,
// 		"height":680
// 		},
// 		"lunbFG":{
// 		"url":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01TvJZOO20xZqkcMaGv_!!4161056916.png",
// 		"width":680,
// 		"height":828
// 		},
// 		"bgImg":{
// 		"url":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01L2yTB320xZqeyvHdO_!!4161056916.png",
// 		"width":584,
// 		"height":64
// 		},
// 		"loadtxt":{
// 			"url":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01AFLROA20xZqhOFG74_!!4161056916.png",
// 			"width":150
// 		},
// 		"progressImg":{
// 		"url":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN015FxPcD20xZqiWOV21_!!4161056916.png",
// 		"width":578,
// 		"height":64
// 		}
// 	},

// 	"indexPage":{
// 		"collectionBtn":[
// 		{
// 			"url":"https://img.alicdn.com/imgextra/i3/4161056916/O1CN019uDzUs20xZqfxLNxO_!!4161056916.png"
// 		},
// 		{
// 			"url":"https://img.alicdn.com/imgextra/i1/4161056916/O1CN01K3jUbe20xZqiB3c8o_!!4161056916.png"
// 		}
// 		],
// 		"jifen":{
// 			"bgimg":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01fRQTAV20xZqmr1DjX_!!4161056916.png",
// 			"btnH":"https://img.alicdn.com/imgextra/i1/4161056916/O1CN01ovRHDk20xZqdvYEu8_!!4161056916.png",
// 			"btn":"https://img.alicdn.com/imgextra/i1/4161056916/O1CN011YlTxn20xZqcNB5qb_!!4161056916.png",
// 			"type":"jifen",
// 			"name":"积分兑换"
// 		},
// 		"overTaskBtns":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01bhkmNX20xZqdE9is5_!!4161056916.png",
// 		"bg":{
// 			"url":"https://img.alicdn.com/imgextra/i3/4161056916/O1CN01wnmh0Z20xZqnJbld8_!!4161056916.jpg",
// 			"width":750,
// 			"height":1624
//         },
//         "switchBtn": {
//             "url":"https://img.alicdn.com/imgextra/i1/4161056916/O1CN01eiTdgB20xZqgZe6de_!!4161056916.png",
//             "width": 47,
//             "heihgt": 77
//           },
//         "switchBtn1": {
//             "url": "https://img.alicdn.com/imgextra/i3/4161056916/O1CN01OGvo3X20xZqdgBm7u_!!4161056916.png",
//             "width": 47,
//             "heihgt": 77
//         },
// 		"btns":{
// 			"list":{
// 				"url":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01dgPukh20xZqfbbvhW_!!4161056916.png",
// 				"width":112,
// 				"height":122
// 			},
// 			"rule":{
// 				"url":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01p6HVfu20xZqmeIf1e_!!4161056916.png",
// 				"width":112,
// 				"height":122
// 			},
// 			"task":{
// 				"url":"https://img.alicdn.com/imgextra/i1/4161056916/O1CN01AiEyfx20xZqkdRibi_!!4161056916.png",
// 				"width":112,
// 				"height":122
// 			},
// 			"prize":{
// 				"url":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01rcJtBI20xZqiXUROb_!!4161056916.png",
// 				"width":112,
// 				"height":122
// 			}
			
// 		},
// 		"head":{
// 			"url":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN013QALv120xZqnXKdKy_!!4161056916.png",
// 			"width":44,
// 			"height":41
// 		},
// 		"bgBan":{
// 			"url":"https://img.alicdn.com/imgextra/i1/4161056916/O1CN01tweasB20xZqkhdK4v_!!4161056916.png",
// 			"width":700,
// 			"height":1030
// 		},
// 		"startBtn":{
// 			"invitation":{
// 				"url":"https://img.alicdn.com/imgextra/i1/4161056916/O1CN015gRjGx20xZqiXqfAe_!!4161056916.png",
// 				"width":248,
// 				"height":84
// 			},
// 			"start":{
// 				"url":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01yrS4VL20xZqfbvCHG_!!4161056916.png",
// 				"width":248,
// 				"height":84
// 			}
// 		},
// 		"difficultyBtns":[
// 			{
// 				"url":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01Dqbm4h20xZqhq8qWl_!!4161056916.png",
// 				"width":296,
// 				"height":140
// 			},
// 			{
// 				"url":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01UsQAAt20xZqhaAjwA_!!4161056916.png",
// 				"width":296,
// 				"height":140
// 			},
// 			{
// 				"url":"https://img.alicdn.com/imgextra/i3/4161056916/O1CN01OvErWK20xZqioPcWz_!!4161056916.png",
// 				"width":296,
// 				"height":140
// 			}
// 		],
// 		"taskBgBtns" : [
// 			{
// 				"bgimg":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01Bd6XxC20xZqfhFQIy_!!4161056916.png",
// 				"btnH":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01yz5OSb20xZqj01pu6_!!4161056916.png",
// 				"btn":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01jTFvJP20xZqmE2ZtL_!!4161056916.png",
// 				"type":"OLD_USER_DAY_ADD", 
// 				"name":"老用户"
// 			},
// 			{
// 				"bgimg":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01u3jaii20xZqn19FdM_!!4161056916.png",
// 				"btnH":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01yz5OSb20xZqj01pu6_!!4161056916.png",
// 				"btn":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01jTFvJP20xZqmE2ZtL_!!4161056916.png",
// 				"type":"USER_FOLLOW_DAY_ADD",
// 				"name":"粉碎专属"
// 			},
// 			{ 
// 				"bgimg":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01LlYUVW20xZqayw1lY_!!4161056916.png",
// 				"btnH":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01pu9S6a20xZqkpkli4_!!4161056916.png",
// 				"btn":"https://img.alicdn.com/imgextra/i1/4161056916/O1CN01TXZQ6L20xZqmyvEaP_!!4161056916.png",
// 				"type":"SIGN",     
// 				"name":"签到"
// 			},
// 			{
// 				"bgimg":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01WqvfsX20xZqjM9mbd_!!4161056916.png",
// 				"btnH":"https://img.alicdn.com/imgextra/i3/4161056916/O1CN01msi5hd20xZqhm1Bg4_!!4161056916.png",
// 				"btn":"https://img.alicdn.com/imgextra/i1/4161056916/O1CN01FA55nE20xZqfKJiwM_!!4161056916.png",
// 				"type":"FOLLOW",     
// 				"name":"关注"
// 			},
// 			{
// 				"bgimg":"https://img.alicdn.com/imgextra/i3/4161056916/O1CN01YNwFGm20xZqq2gGyK_!!4161056916.png",
// 				"btnH":"https://img.alicdn.com/imgextra/i3/4161056916/O1CN014wwEDQ20xZqfCOu2k_!!4161056916.png",
// 				"btn":"https://img.alicdn.com/imgextra/i3/4161056916/O1CN01kAJNfC20xZqnrIn3R_!!4161056916.png",
// 				"type":"MEMBER",       
// 				"name":"入会"
// 			},
// 			{
// 				"bgimg":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN011GxsJ320xZqn16dS9_!!4161056916.png",
// 				"btnH":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01b3aUme20xZqdvVtQ4_!!4161056916.png",
// 				"btn":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01LE840A20xZqZLJCL3_!!4161056916.png",
// 				"type":"COLLECT",
// 				"name":"收藏"             
// 			},
// 			{
// 				"bgimg":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01OL6R6220xZqnzz01F_!!4161056916.png",
// 				"btnH":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01byGcSa20xZqfCQeAN_!!4161056916.png",
// 				"btn":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01MS4cbK20xZqlMa5Dk_!!4161056916.png",
// 				"type":"SHARE",
// 				"name":"分享"
// 			},
// 			{
// 				"bgimg":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01I2Y3TL20xZqmbXaQ1_!!4161056916.png",
// 				"btnH":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN0131EWOE20xZqignvIg_!!4161056916.png",
// 				"btn":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01nTWMa620xZqlUBQlQ_!!4161056916.png",
// 				"type":"views",
// 				"name":"浏览店铺15秒"
// 			},
// 			{
// 				"bgimg":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01Ilu1uI20xZqn16ZHn_!!4161056916.png",
// 				"btnH":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN016ONwBJ20xZqiFWsBr_!!4161056916.png",
// 				"btn":"https://img.alicdn.com/imgextra/i3/4161056916/O1CN01qEcfcI20xZqnW9rDI_!!4161056916.png",
// 				"type":"view",
// 				"name":"浏览直播15S"
// 			}
// 		]
// 	},

// 	"listPage":{
// 		"bg":{
// 			"url":"https://img.alicdn.com/imgextra/i1/4161056916/O1CN01wqIQVb20xZqfKvBKl_!!4161056916.png",
// 			"width":680,
// 			"height":1092
// 		},

// 		"listTag":[
// 			{
// 				"url":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01b5ZA1R20xZqoOfg19_!!4161056916.png"
// 			},
// 			{
// 				"url":"https://img.alicdn.com/imgextra/i3/4161056916/O1CN01AFWoHB20xZqZLfkiX_!!4161056916.png"
// 			},
// 			{
// 				"url":"https://img.alicdn.com/imgextra/i1/4161056916/O1CN01bYfJ7s20xZqhjQwUO_!!4161056916.png"
// 			}
// 		],

// 		"listBg":{
// 			"url":"https://img.alicdn.com/imgextra/i3/4161056916/O1CN01lHaaXj20xZqhuA2Sk_!!4161056916.png"
// 		},
// 		"listBg2":{
// 			"url":"https://img.alicdn.com/imgextra/i1/4161056916/O1CN01vpgUco20xZqnrb7TV_!!4161056916.png"
// 		},

// 		"lingQuBtn":{
// 			"url":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01Bn4ofa20xZqfwpE4F_!!4161056916.png"
// 		}
// 	},

// 	"rulesPage":{
// 		"bg":{
// 			"url":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01MlgDx620xZqoGKPEG_!!4161056916.png",
// 			"width":680,
// 			"height":843
// 		}
// 	},

// 	"taskPage":{
// 		"bg":{
// 			"url":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01yX5Bpy20xZqfoKl7K_!!4161056916.png",
// 			"width":680,
// 			"height":865
// 		}
// 	},

// 	"prizePage":{
// 		"bg":{
// 			"url":"https://img.alicdn.com/imgextra/i1/4161056916/O1CN010lVHAV20xZqkr96RR_!!4161056916.png",
// 			"width":680,
// 			"height":671
// 		},

// 		"line":{
// 			"url":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01ubTwd620xZqcBPt57_!!4161056916.png"
// 		},

// 		"bar":{
// 			"url":"https://img.alicdn.com/imgextra/i1/4161056916/O1CN01zinMeD20xZqctD906_!!4161056916.png"
// 		},

// 		"prizeBg":{
// 			"url":"https://img.alicdn.com/imgextra/i1/4161056916/O1CN019oag2E20xZqfpsta8_!!4161056916.png"
// 		},

// 		"lingQu":{
// 			"url":"https://img.alicdn.com/imgextra/i3/4161056916/O1CN010ESrAw20xZqw1t32b_!!4161056916.png"
// 		}
// 	},

// 	"tipPage":{
// 		"bg":{
// 			"url":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01A0sTLC20xZqhTlpno_!!4161056916.png",
// 			"width":680,
// 			"height":795
// 		}
// 	},

// 	"pipeiGamePage":{
// 		"bg":{
// 			"url":"https://img.alicdn.com/imgextra/i3/4161056916/O1CN016YQKKD20xZqiBeTGe_!!4161056916.png"
// 		},

// 		"bgImg":{
//             "url":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01L2yTB320xZqeyvHdO_!!4161056916.png",
//             "width":551,
//             "height":69
// 		},
// 		"progressImg":{
//             "url":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN015FxPcD20xZqiWOV21_!!4161056916.png",
//             "width":551,
//             "height":59
// 		},
			
// 		"tipImg":{
// 			"url":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01G8t3hj20xZqZN2XqK_!!4161056916.png"
// 		},

// 		"tipBar":{
// 			"url":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN014eia4g20xZqkzcQXh_!!4161056916.png"
// 		},

// 		"cancelBtn":{
// 			"url":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01bhkmNX20xZqdE9is5_!!4161056916.png"
// 		},

// 		"xMan":{
// 			"url":"https://img.alicdn.com/imgextra/i1/4161056916/O1CN01PzG1eD20xZqe97ATg_!!4161056916.png"
// 		},

// 		"tagImg":[
// 			{"url":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01ZODAva20xZqnt39AV_!!4161056916.png"},
// 			{"url":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01DYtY6k20xZqj9mJWJ_!!4161056916.png"}
// 		]
// 	},

// 	"gameResultVictory":{
// 		"bg":{
// 			"url":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN013QJC7L20xZqe73wrg_!!4161056916.png"
// 		},
// 		"bg2":{
// 			"url":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01rzwBTH20xZqf5uYnP_!!4161056916.png"
// 		},

// 		"seeShopImg":{
// 			"url":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01S0990J20xZqpRtYQE_!!4161056916.png"
// 		},

// 		"random":{
// 			"url":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01CIwY2f20xZqoC16Dl_!!4161056916.png"
// 		},

// 		"againImg":{
// 			"url":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01QPaYRx20xZqnuFX0Q_!!4161056916.png"
// 		},

// 		"listImg":{
// 			"url":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01WK3h1A20xZqfz7xJB_!!4161056916.png"
// 		}
// 	},

// 	"gameResultPage":{
// 		"bg":{
// 			"url":"https://img.alicdn.com/imgextra/i1/4161056916/O1CN01ynMjRo20xZqiv2gD5_!!4161056916.png"
// 		},

// 		"seeShop":{
// 			"url":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01S0990J20xZqpRtYQE_!!4161056916.png"
// 		},

// 		"radomImg":{
// 			"url":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01CIwY2f20xZqoC16Dl_!!4161056916.png"
// 		},

// 		"againImg":{
// 			"url":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01QPaYRx20xZqnuFX0Q_!!4161056916.png"
// 		},
		
// 		"listImg":{
// 			"url":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01WK3h1A20xZqfz7xJB_!!4161056916.png"
// 		}
// 	},

// 	"gamePage":{
// 		"bg":{
// 			"url":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01nSSczZ20xZql2BbY0_!!4161056916.png"
// 		},

// 		"tagImg":[
// 			{
// 				"url":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01ZODAva20xZqnt39AV_!!4161056916.png"
// 			},
// 			{
// 				"url":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01DYtY6k20xZqj9mJWJ_!!4161056916.png"
// 			}
// 		],

// 		"stepImgBg":{
// 			"url":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01qIJvYL20xZqfQFgVc_!!4161056916.png"
// 		},
// 		"stepImgTg":{
// 			"url":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01w1Lwp820xZql3VExw_!!4161056916.png"
// 		},

// 		"msgIcon":{
// 			"url":"https://img.alicdn.com/imgextra/i4/4161056916/O1CN01G23BRX20xZqkN110w_!!4161056916.png"
// 		}
// 	},

// 	"collectionPage":{
// 		"bg":{
// 			"url":"https://img.alicdn.com/imgextra/i3/4161056916/O1CN01T6AaGm20xZqitBbtY_!!4161056916.png"
// 		},

// 		"shopBgt":{
// 			"url":"https://img.alicdn.com/imgextra/i2/4161056916/O1CN01beVV8l20xZqoPWZvN_!!4161056916.png"
// 		}
// 	},
	
// 	"addessShowPage":{
// 		"bg":{
// 			"url":"https://img.alicdn.com/imgextra/i1/4161056916/O1CN01LqJFSr20xZqi6swVT_!!4161056916.png",
// 			"width":680,
// 			"height":671
// 		},

// 		"queren":{
// 			"url":"https://img.alicdn.com/imgextra/i3/4161056916/O1CN01mZMYkc20xZqZIOo3W_!!4161056916.png"
// 		}
// 	}
// }
//           pifuuuu = JSON.stringify(pifuuuu)
          // console.log("==============================皮肤==================================================>",pifuuuu)

          this.initFn(pifu);


          // let loadPifu = {...pifu.locaPage}

          this.setData({
            ...pifu.locaPage
          })

          //console.log("djfdskjfsjfksjfl======================",loadPifu)
          

        })



				// setTimeout(() => {

				// 	this.initFn(pifu)
					
				// },100)



			})
			
    })
  },

  onLoad(query) {

    this.eqActivityTime();

		this.headImg();

		// my.alert({
		// 	content:JSON.stringify(query)
		// });
		
	

    //初始化匹配
    getApp().cancelPiPei();
    getApp().getOut();

    if(query.addRoomId){
      this.setData({
				addRoomId:query.addRoomId
      })
		}
		
		if(query.openId){
			this.setData({
				shareOpenId:query.openId
			})
		}
		
    
    
  },
});
